package com.zhoug.demo.player.http;

/**
 * 网络请求错误代码
 *
 * @Author 35574
 * @Date 2022/4/13
 * @Description
 */
public class HttpErrors {

    public static final int STATUS_SUCCESS = 100;//成功状态
    public static final int STATUS_UNAUTHORIZED = 401;//未登陆或者token已失效
    public static final int STATUS_NEED_LOGIN  = -1;// 未登陆或者token已失效，
    public static final int STATUS_FORBID = -2;//请求频繁,非法访问,请稍后再试
    public static final int STATUS_COMMON_FAILURE = -100;//接口异常
    public static final int STATUS_SERVER_FAILURE = -101;//数据服务异常
    public static final int STATUS_UNABLE_CONNECT_SERVER = -102;//无法连接到数据服务
    public static final int STATUS_PARAM_ERROR = -201;//参数错误(验证失败)
    public static final int STATUS_CAPTCHA_FAILED = -202;//验证码失效

    public static final String STATUS_SUCCESS_MESSAGE="请求成功";
    public static final String STATUS_UNAUTHORIZED_MESSAGE="未登陆或者token已失效";
    public static final String STATUS_NEED_LOGIN_MESSAGE="未登陆或者token已失效";
    public static final String STATUS_FORBID_MESSAGE="请求频繁,非法访问,请稍后再试";
    public static final String STATUS_COMMON_FAILURE_MESSAGE="接口异常";
    public static final String STATUS_SERVER_FAILURE_MESSAGE="数据服务异常";
    public static final String STATUS_UNABLE_CONNECT_SERVER_MESSAGE="无法连接到数据服务";
    public static final String STATUS_PARAM_ERROR_MESSAGE="参数错误(验证失败)";
    public static final String STATUS_CAPTCHA_FAILED_MESSAGE="验证码失效";



}
